<?php
include('function/connection.php'); 
include('function/function.php');

$sql="SELECT * FROM tbl_customers  WHERE cus_name='".$_POST['stock_name1']."'";
$result=mysql_query($sql);
$row=mysql_fetch_assoc($result);
$address=$row['cus_address'];
$contact1=$row['cus_contact1'];
//$contact2=$row['cus_contact2'];
if($rate!=NULL)
{
	$arr = array ("address"=>"$address","contact1"=>"$contact1");
	echo json_encode($arr);
}
else
{
	$arr1 = array ("no"=>"no");
	echo json_encode($arr1);

}
?>